package com.datang.springcode.environmentAbstract;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Profile;

public class EnvironmentAbstractConfig {

    @Bean
    @Profile(value = {"prod"})
    public Object obj1(){
        return new Object();
    }

    @Bean
    @Profile(value = {"test"})
    public Object obj2(){
        return new Object();
    }
}
